//
//  SearchVC.h
//  DataStatistics
//
//  Created by Kang on 15/10/13.
//  Copyright © 2015年 YTYangK. All rights reserved.
//


//#import "DTKDropdownMenuView.h"



typedef void(^searchReturnVlue)(id returnValue);

@class SearchVC;
@class EListModel;

@protocol SearchDelegate <NSObject>

- (void)SearchNum:(SearchVC *)search;

@end

@interface SearchVC : UIViewController <UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate,NSFetchedResultsControllerDelegate>

singleton_for_interface(SearchVC)
@property (assign, nonatomic) id <SearchDelegate>searchDelegate;

/**
 *  模型管理者
 */
@property (strong, nonatomic) NSManagedObjectContext     *manageobjectContext;
@property (strong, nonatomic) NSFetchedResultsController *SVC_fetchedRessults;
/** 存放获取到的数据 */
@property (strong, nonatomic) NSMutableArray* searchModelAry;


/**
 *  通知来时是否刷新界面
 */
@property (assign, nonatomic)  BOOL isSearchJumpLiet;

/**
 *  主要的TableView
 */
@property (weak, nonatomic  ) IBOutlet UITableView                *searchTableView;
/**
 *  判断点击后，是否完成了请求
 */
@property (getter=isClickFinished, nonatomic) BOOL  clickFinished;

/** 遮罩层   */
@property (strong, nonatomic) YLZHoledView *holdedView;
@property (strong, nonatomic) IBOutlet UIButton *ALLBtn;
@property (strong, nonatomic) IBOutlet UIButton *FaultBtn;
@property (strong, nonatomic) IBOutlet UIButton *LatelyBtn;

/**
 *  提供给Tab 跳转页面
 */
- (void)JumpWithVlue:(id)vlue;
- (void)setupUnreadCount;
- (void)subtractUnreadCount:(int)count;
- (void)addUnreadCount:(id)vlue;
- (void)addCourseListOfDimensionalCodeScanning;
- (void)addCourseListOfFlatStatus;
- (void)removeMaskLayer;
@end
